package com.rimi.bbs.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.rimi.bbs.bean.User;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jerry
 * @since 2019-02-24
 */
public interface UserService extends IService<User> {

    User login(User user);

    boolean register(User user);

    User getUserByEmailName(String email);

    User getUserByName(String name);

    boolean updateUserPassword(Integer id,String password);

    boolean updateUserByEmail(User user);

}
